package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageFactory;
import cn.stylefeng.guns.sys.modular.system.entity.BtyBxd;
import cn.stylefeng.guns.sys.modular.system.entity.BtyBxda;
import cn.stylefeng.guns.sys.modular.system.entity.BtyPsda;
import cn.stylefeng.guns.sys.modular.system.mapper.BtyPsdaMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 档案管理表 服务实现类
 * </p>
 * @author liuy
 * @since
 */
@Service
public class BtyPsdaService extends ServiceImpl<BtyPsdaMapper, BtyPsda> {
    /**
     * 获取档案管理列表
     *
     * @author fengshuonan
     * @Date 2018/12/23 6:05 PM
     */

    public Page<Map<String, Object>> list(String condition,String status,String flag,String beginTime,String endTime,String username,String dm) {
        Page page = LayuiPageFactory.defaultPage();

        return this.baseMapper.list(page, condition,status,flag,beginTime,endTime,username,dm);
    }
    public List<BtyBxda> psrList(String username) {
        return this.baseMapper.psrList(username);
    }
    public List<BtyBxda> kjList(String kj) {
        return this.baseMapper.kjList(kj);
    }

   public BtyBxd info(String id){
        return this.baseMapper.info(id);
   }

    public List<BtyBxd> dmList(String username) {
        return this.baseMapper.dmList(username);
    }
    public List<BtyPsda> pxList(String dm,String username) {
        return this.baseMapper.pxList(dm,username);
    }

}
